	function initWeb() {
		var hideInput2 = document.getElementById("closeFlag");
		if (hideInput2!=null) {
			alert("提交成功，网页即将关闭！");
			window.close();
		}
	}
	String.prototype.getBytes = function() {
		var cArr = this.match(/[^\x00-\xff]/ig);
		return this.length + (cArr == null ? 0 : cArr.length);
	};
	function checkmax(str, max) {
		if (str.getBytes() > max) {
			return true;
		} else {
			return false;
		}
	}
	function checkA() {
		var str = document.getElementById("email").value;
		if (checkmax(str,50)) {
			document.getElementById("suggestmsg").innerHTML="联系方式过长";
			return false;
		}
		document.getElementById("suggestmsg").innerHTML=" ";
		return true;
	}
	function checkB() {
		var str = document.getElementById("suggest").value;
		if (checkmax(str,2000)) {
			document.getElementById("suggestmsg").innerHTML="建议内容过长，请分多次提交";
			return false;
		}
		document.getElementById("suggestmsg").innerHTML=" ";
		return true;
	}
	function checkB2() {
		document.getElementById("suggestmsg").innerHTML=" ";
		var str = document.getElementById("suggest").value;
		if (!checkmax(str,4)) {
			document.getElementById("suggestmsg").innerHTML="建议内容太少！";
			return false;
		}
		return checkB();
	}
	function submitA() {
		if (checkA() && checkB2()) {
			return true;
		}
		return false;
	}
	function changecaptcha() {
		var url = "Captcha?r="+Date.parse(new Date());
		document.getElementById("capcode").src = url;
		return false;
	}